]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay/baseAppView: Also consider its own content box when adapting
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 3 Dec 2020 16:01:29 +0000 (13:01 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 3 Dec 2020 17:24:18 +0000 (14:24 -0300)
Otherwise setting margins and paddings from CSS may result in the grid
being adapted to the wrong size.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1519>

js/ui/appDisplay.js

index d1af384d179836538bc4aabaa128446c4bd4beda..2f82b97f4082997bf20d0490633ac15f412d7d48 100644 (file)
@@ -848,6 +848,7 @@ var BaseAppView = GObject.registerClass({
             x2: width,
             y2: height,
         });
+        box = this.get_theme_node().get_content_box(box);
         box = this._scrollView.get_theme_node().get_content_box(box);
         box = this._grid.get_theme_node().get_content_box(box);